package com.msb.common.valid;/*
 * 软件版权: 恒生电子股份有限公司
 * 修改记录:
 * 修改日期     修改人员  修改说明
 * @Version:1.0
 * ========    =======  ============================================
 * 2025/3/8  hspcadmin  com.msb.common.valid 新增
 * ========    =======  ============================================
 */

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Documented
@Constraint(
    validatedBy = {ListValueConstraintValidator.class}
)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER, ElementType.TYPE_USE})
@Retention(RetentionPolicy.RUNTIME)

public @interface ListValue {
  String message() default "提交的数据必须在数据列表中";

  Class<?>[] groups() default {};

  Class<? extends Payload>[] payload() default {};

  int[] val() default {};
}
